<div class='form'>
  <% form_for [@pcate,@property] do |f| %>
    <%= f.error_messages %>

    <p>
      <label for="property_name">所属类别</label>
      <%= select("property", "pcate_id", Pcate.all.collect {|p| [ p.name, p.id ] }, { :include_blank => true }) %>
    </p>
    <p>
      <label for="property_name">名称</label>
      <%=  f.text_field  :name,:size=>20 %>
    </p>

    <p>
      <label for="property_range">取值范围</label>
      <%=  f.text_field  :range,:size=>60 %>
      <span class="tips">请用英文逗号分割,如"斜包,双肩,挎包"</span>
    </p>
    <p>
      <%= f.submit button_name,:class=>'submit' %>
    </p>
  <% end %>
</div>